	

-- D:\GOA\reslibrary\templete\res\area\area.phone.lua.xsl 14
					
gr_module("gm_xinbanchunzhongyun")

systemsettingareaArea = inherit(GmCtrl.ControlBase):name("systemsettingareaArea")

systemsettingareaArea.init = function (self,parent,aid)

	local top = self
	local fid = aid or "systemsettingareaArea"
	GmCtrl.ControlBase.init(self,parent,fid )

	
	self.title = nil
		
	self.btsysinit = self:get_child("btsysinit")
	self.btsysinit:set_click(function(link)			
			
		top.hostWindow:addNavFrame('sysinit',nil,function(frame)
				
		end)
					  			
	end)
	
	self.btpermission = self:get_child("btpermission")
	self.btpermission:set_click(function(link)			
			
		top.hostWindow:addNavFrame('permission',nil,function(frame)
				
		end)
					  			
	end)
	
	self.btpwdmodify = self:get_child("btpwdmodify")
	self.btpwdmodify:set_click(function(link)			
			
		top.hostWindow:addNavFrame('pwdmodify',nil,function(frame)
				
		end)
					  			
	end)
	
	self.btdataclear = self:get_child("btdataclear")
	self.btdataclear:set_click(function(link)			
			
		top.hostWindow:addNavFrame('dataclear',nil,function(frame)
				
		end)
					  			
	end)
	
	self.btsoftmaintenance = self:get_child("btsoftmaintenance")
	self.btsoftmaintenance:set_click(function(link)			
			
		top.hostWindow:addNavFrame('softmaintenance',nil,function(frame)
				
		end)
					  			
	end)
	
	self.btquickform = self:get_child("btquickform")
	self.btquickform:set_click(function(link)			
			
		top.hostWindow:addNavFrame('quickform',nil,function(frame)
				
		end)
					  			
	end)
	
	self.btparamsetting = self:get_child("btparamsetting")
	self.btparamsetting:set_click(function(link)			
			
		top.hostWindow:addNavFrame('paramsetting',nil,function(frame)
				
		end)
					  			
	end)
	
	self.btintro = self:get_child("btintro")
	self.btintro:set_click(function(link)			
			
		top.hostWindow:addNavFrame('intro',nil,function(frame)
				
		end)
					  			
	end)
	
	self.btprintsetting = self:get_child("btprintsetting")
	self.btprintsetting:set_click(function(link)			
			
		top.hostWindow:addNavFrame('printsetting',nil,function(frame)
				
		end)
					  			
	end)
	
	self.btsmsetting = self:get_child("btsmsetting")
	self.btsmsetting:set_click(function(link)			
			
		top.hostWindow:addNavFrame('smsetting',nil,function(frame)
				
		end)
					  			
	end)
	
	self.bttagsetting = self:get_child("bttagsetting")
	self.bttagsetting:set_click(function(link)			
			
		top.hostWindow:addNavFrame('tagsetting',nil,function(frame)
				
		end)
					  			
	end)
	
	self.btqrsearchsetting = self:get_child("btqrsearchsetting")
	self.btqrsearchsetting:set_click(function(link)			
			
		top.hostWindow:addNavFrame('qrsearchsetting',nil,function(frame)
				
		end)
					  			
	end)
	
	self.btmobile = self:get_child("btmobile")
	self.btmobile:set_click(function(link)			
			
		top.hostWindow:addNavFrame('mobile',nil,function(frame)
				
		end)
					  			
	end)
	
	self.btremotesetting = self:get_child("btremotesetting")
	self.btremotesetting:set_click(function(link)			
			
		top.hostWindow:addNavFrame('remotesetting',nil,function(frame)
				
		end)
					  			
	end)
	
	self.btipmonitor = self:get_child("btipmonitor")
	self.btipmonitor:set_click(function(link)			
			
		top.hostWindow:addNavFrame('ipmonitor',nil,function(frame)
				
		end)
					  			
	end)
	
	self.btoplog = self:get_child("btoplog")
	self.btoplog:set_click(function(link)			
			
		top.hostWindow:addNavFrame('oplog',nil,function(frame)
				
		end)
					  			
	end)
	

	self.page = 0
	
	self:show_scroll_bar(true)

end


systemsettingareaArea.on_show = function(self,key)

	
	if self.ctrls and self.ctrls.on_show then
		self.ctrls:on_show(key)
	end
	
	
end







systemsettingareaArea.set_ref_data = function(self,data)
	table.print(data)
	for a,b in pairs(data) do
		if self[a] then
			self[a]:set_text(b)
		end
	end
end


systemsettingareaArea.set_data = function(self,data)
	self.data = data
	
	if self.ctrls and self.ctrls.set_data then
		self.ctrls:set_data(data)
	end
		
	
	for a,b in pairs(data) do
		if self[a] ~= nil and type(self[a]) == 'table' and self[a].set_text ~= nil then
			self[a]:set_text(tostring(b))
		end
	end
	
end



systemsettingareaArea.set_title = function(self,value)
	self.title = value
end
		